package Sequence;

public class Test0700 {
}

class Solution0700_1 {
    public TreeNode searchBST(TreeNode root, int val) {
        if (root == null) return null;
        if (root.val == val) return root;
        TreeNode le = searchBST(root.left, val);
        if (le !=null) return le;
        return searchBST(root.right, val);
    }
}
